package cn.tworice.client.dao;

import cn.tworice.common.entity.code.*;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface ShoppingCartDao {
    List<ShoppingCart> queryList(@Param("i") int i, @Param("pageSize") Integer pageSize, @Param("entity") ShoppingCart entity);

    int queryTotal(ShoppingCart entity);

    int insert(ShoppingCart entity);

    int update(ShoppingCart entity);

    int del(@Param("ids") Integer[] ids);

    int insertList(@Param("list") List<ShoppingCart> list);

    ShoppingCart queryInfo(Integer id);
}